object _timesh_add: T_timesh_add
  Left = 0
  Top = 0
  BorderIcons = []
  BorderStyle = bsToolWindow
  Caption = #1044#1086#1076#1072#1074#1072#1085#1085#1103' '#1076#1086' '#1090#1072#1073#1077#1083#1103
  ClientHeight = 425
  ClientWidth = 536
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'Tahoma'
  Font.Style = []
  OldCreateOrder = False
  Position = poDesktopCenter
  OnClose = FormClose
  OnShow = FormShow
  PixelsPerInch = 96
  TextHeight = 13
  object dxLayoutControl1: TdxLayoutControl
    Left = 0
    Top = 0
    Width = 333
    Height = 297
    TabOrder = 0
    object cxDBTextEdit1: TcxDBTextEdit
      Left = 132
      Top = 10
      DataBinding.DataField = 'tab_no'
      DataBinding.DataSource = ds_timesh_add
      Enabled = False
      Style.BorderColor = clWindowFrame
      Style.BorderStyle = ebs3D
      Style.HotTrack = False
      TabOrder = 0
      Width = 163
    end
    object cxDBTextEdit2: TcxDBTextEdit
      Left = 132
      Top = 37
      DataBinding.DataField = 'godmesr'
      DataBinding.DataSource = ds_timesh_add
      Enabled = False
      Style.BorderColor = clWindowFrame
      Style.BorderStyle = ebs3D
      Style.HotTrack = False
      TabOrder = 1
      Width = 163
    end
    object cxDBTextEdit3: TcxDBTextEdit
      Left = 132
      Top = 64
      DataBinding.DataField = 'godmesn'
      DataBinding.DataSource = ds_timesh_add
      Style.BorderColor = clWindowFrame
      Style.BorderStyle = ebs3D
      Style.HotTrack = False
      TabOrder = 2
      Width = 163
    end
    object cxButton1: TcxButton
      Left = 10
      Top = 226
      Width = 285
      Height = 25
      Caption = #1047#1073#1077#1088#1077#1075#1090#1080
      ModalResult = 1
      TabOrder = 10
      OnClick = cxButton1Click
    end
    object cxButton2: TcxButton
      Left = 10
      Top = 257
      Width = 285
      Height = 25
      Caption = #1042#1110#1076#1084#1110#1085#1080#1090#1080
      ModalResult = 2
      TabOrder = 11
    end
    object cxDBTextEdit5: TcxDBTextEdit
      Left = 132
      Top = 172
      DataBinding.DataField = 'df'
      DataBinding.DataSource = ds_timesh_add
      Style.BorderColor = clWindowFrame
      Style.BorderStyle = ebs3D
      Style.HotTrack = False
      TabOrder = 6
      Width = 121
    end
    object cxDBTextEdit6: TcxDBTextEdit
      Left = 132
      Top = 199
      DataBinding.DataField = 'cf'
      DataBinding.DataSource = ds_timesh_add
      Style.BorderColor = clWindowFrame
      Style.BorderStyle = ebs3D
      Style.HotTrack = False
      TabOrder = 8
      Width = 121
    end
    object cxDBTextEdit7: TcxDBTextEdit
      Left = 132
      Top = 118
      DataBinding.DataField = 'percent'
      DataBinding.DataSource = ds_timesh_add
      Style.BorderColor = clWindowFrame
      Style.BorderStyle = ebs3D
      Style.HotTrack = False
      TabOrder = 4
      Width = 163
    end
    object cxLabel1: TcxLabel
      Left = 259
      Top = 172
      Caption = #1055#1083#1072#1085': '
      Style.HotTrack = False
    end
    object cxLabel2: TcxLabel
      Left = 259
      Top = 199
      Caption = #1055#1083#1072#1085':'
      Style.HotTrack = False
    end
    object cbb1: TcxDBLookupComboBox
      Left = 132
      Top = 91
      DataBinding.DataField = 'knuz'
      DataBinding.DataSource = ds_timesh_add
      Properties.DropDownAutoSize = True
      Properties.KeyFieldNames = 'knuz'
      Properties.ListColumns = <
        item
          FieldName = 'knuz'
        end
        item
          FieldName = 'name'
        end>
      Properties.ListSource = dm.ds_nu
      Style.BorderColor = clWindowFrame
      Style.BorderStyle = ebs3D
      Style.HotTrack = False
      Style.ButtonStyle = bts3D
      Style.PopupBorderStyle = epbsFrame3D
      TabOrder = 3
      Width = 163
    end
    object cxdbtxtdt1: TcxDBTextEdit
      Left = 132
      Top = 145
      DataBinding.DataField = 'summa'
      DataBinding.DataSource = ds_timesh_add
      Style.BorderColor = clWindowFrame
      Style.BorderStyle = ebs3D
      Style.HotTrack = False
      TabOrder = 5
      Width = 163
    end
    object dxLayoutControl1Group_Root: TdxLayoutGroup
      AlignHorz = ahLeft
      AlignVert = avTop
      ButtonOptions.Buttons = <>
      Hidden = True
      ShowBorder = False
      Index = -1
    end
    object dxLayoutControl1Group1: TdxLayoutGroup
      CaptionOptions.Text = 'New Group'
      ButtonOptions.Buttons = <>
      TabbedOptions.NavigatorPosition = npLeftTop
      TabbedOptions.TabCaptionAlignment = taLeftJustify
      Index = -1
    end
    object dxLayoutControl1Item1: TdxLayoutItem
      CaptionOptions.Text = 'New Item'
      Index = -1
    end
    object dxLayoutControl1Item2: TdxLayoutItem
      CaptionOptions.Text = #1058#1072#1073#1077#1083#1100#1085#1080#1081' '#1085#1086#1084#1077#1088
      Parent = dxLayoutControl1Group_Root
      Control = cxDBTextEdit1
      ControlOptions.ShowBorder = False
      Enabled = False
      Index = 0
    end
    object dxLayoutControl1Item3: TdxLayoutItem
      CaptionOptions.Text = #1056#1110#1082' '#1084#1110#1089#1103#1094#1100' '#1088#1086#1079#1088#1072#1093#1091#1085#1082#1091
      Parent = dxLayoutControl1Group_Root
      Control = cxDBTextEdit2
      ControlOptions.ShowBorder = False
      Enabled = False
      Index = 1
    end
    object dxLayoutControl1Item4: TdxLayoutItem
      CaptionOptions.Text = #1056#1110#1082' '#1084#1110#1089#1103#1094#1100' '#1085#1072#1088#1072#1093#1091#1074#1072#1085#1085#1103
      Parent = dxLayoutControl1Group_Root
      Control = cxDBTextEdit3
      ControlOptions.ShowBorder = False
      Index = 2
    end
    object dxLayoutControl1Item6: TdxLayoutItem
      CaptionOptions.Text = 'cxButton1'
      CaptionOptions.Visible = False
      Parent = dxLayoutControl1Group_Root
      Control = cxButton1
      ControlOptions.ShowBorder = False
      Index = 7
    end
    object dxLayoutControl1Item7: TdxLayoutItem
      CaptionOptions.Text = 'cxButton2'
      CaptionOptions.Visible = False
      Parent = dxLayoutControl1Group_Root
      Control = cxButton2
      ControlOptions.ShowBorder = False
      Index = 8
    end
    object dxLayoutControl1Item8: TdxLayoutItem
      CaptionOptions.Text = #1044#1085#1110' '#1092#1072#1082#1090
      Parent = dxLayoutControl1Group5
      Control = cxDBTextEdit5
      ControlOptions.ShowBorder = False
      Index = 0
    end
    object dxLayoutControl1Item9: TdxLayoutItem
      CaptionOptions.Text = #1063#1072#1089#1080' '#1092#1072#1082#1090
      Parent = dxLayoutControl1Group3
      Control = cxDBTextEdit6
      ControlOptions.ShowBorder = False
      Index = 0
    end
    object dxLayoutControl1Item10: TdxLayoutItem
      CaptionOptions.Text = #1055#1088#1086#1094#1077#1085#1090'('#1044#1086#1087#1083#1072#1090#1080')'
      Parent = dxLayoutControl1Group_Root
      Control = cxDBTextEdit7
      ControlOptions.ShowBorder = False
      Index = 4
    end
    object dxLayoutControl1Item11: TdxLayoutItem
      CaptionOptions.Text = 'cxLabel1'
      CaptionOptions.Visible = False
      Parent = dxLayoutControl1Group5
      Control = cxLabel1
      ControlOptions.ShowBorder = False
      Index = 1
    end
    object dxLayoutControl1Item12: TdxLayoutItem
      CaptionOptions.Text = 'cxLabel2'
      CaptionOptions.Visible = False
      Parent = dxLayoutControl1Group3
      Control = cxLabel2
      ControlOptions.ShowBorder = False
      Index = 1
    end
    object dxLayoutControl1Group2: TdxLayoutGroup
      CaptionOptions.Text = 'Hidden Group'
      Parent = dxLayoutControl1Group_Root
      ButtonOptions.Buttons = <>
      Hidden = True
      ShowBorder = False
      Index = 5
    end
    object dxLayoutControl1Group3: TdxLayoutGroup
      CaptionOptions.Text = 'Hidden Group'
      Parent = dxLayoutControl1Group_Root
      ButtonOptions.Buttons = <>
      Hidden = True
      LayoutDirection = ldHorizontal
      ShowBorder = False
      Index = 6
    end
    object dxLayoutControl1Item13: TdxLayoutItem
      CaptionOptions.Text = #1050#1086#1076' '#1085'/'#1091
      Parent = dxLayoutControl1Group_Root
      Control = cbb1
      ControlOptions.ShowBorder = False
      Index = 3
    end
    object dxLayoutControl1Item5: TdxLayoutItem
      CaptionOptions.Text = #1057#1091#1084#1072
      Parent = dxLayoutControl1Group2
      Control = cxdbtxtdt1
      ControlOptions.ShowBorder = False
      Index = 0
    end
    object dxLayoutControl1Group5: TdxLayoutGroup
      CaptionOptions.Text = 'Hidden Group'
      Parent = dxLayoutControl1Group2
      ButtonOptions.Buttons = <>
      Hidden = True
      LayoutDirection = ldHorizontal
      ShowBorder = False
      Index = 1
    end
  end
  object q_timesh_add: TUniQuery
    SQLInsert.Strings = (
      'INSERT INTO enterprise.timesheet'
      
        '  ( godmesr, godmesn, tab_no, knuz, cp, dp, cf, df, summa, perce' +
        'nt)'
      'VALUES'
      
        '  ( :godmesr, :godmesn, :tab_no, :knuz, :cp, :dp, :cf, :df, :sum' +
        'ma, :percent)'
      'returning "key"')
    SQLDelete.Strings = (
      '--')
    SQLUpdate.Strings = (
      'UPDATE enterprise.timesheet'
      'SET'
      
        '  godmesn = :godmesn, knuz = :knuz, cp = :cp, dp = :dp, cf = :cf' +
        ', df = :df, summa = :summa, percent = :percent'
      'WHERE'
      '  key = :Old_key')
    SQLLock.Strings = (
      'SELECT * FROM enterprise.timesheet'
      'WHERE'
      '  key = :Old_key'
      'FOR UPDATE NOWAIT')
    SQLRefresh.Strings = (
      
        'SELECT key, godmesr, godmesn, tab_no, knuz, cp, dp, cf, df, summ' +
        'a, percent FROM enterprise.timesheet'
      'WHERE'
      '  key = :key')
    Connection = dm.UC
    SQL.Strings = (
      'select *'
      'from enterprise.timesheet'
      'where'
      'key=:akey')
    Options.SetFieldsReadOnly = False
    Left = 384
    Top = 200
    ParamData = <
      item
        DataType = ftUnknown
        Name = 'akey'
      end>
    object q_timesh_addkey: TIntegerField
      AutoGenerateValue = arAutoInc
      FieldName = 'key'
    end
    object q_timesh_addgodmesr: TWideStringField
      FieldName = 'godmesr'
      Size = 6
    end
    object q_timesh_addgodmesn: TWideStringField
      FieldName = 'godmesn'
      Size = 6
    end
    object q_timesh_addtab_no: TWideStringField
      FieldName = 'tab_no'
      Size = 5
    end
    object q_timesh_addknuz: TWideStringField
      FieldName = 'knuz'
      Size = 3
    end
    object q_timesh_addcp: TFloatField
      FieldName = 'cp'
    end
    object q_timesh_adddp: TFloatField
      FieldName = 'dp'
    end
    object q_timesh_addcf: TFloatField
      FieldName = 'cf'
    end
    object q_timesh_adddf: TFloatField
      FieldName = 'df'
    end
    object q_timesh_addsumma: TFloatField
      FieldName = 'summa'
    end
    object q_timesh_addpercent: TFloatField
      FieldName = 'percent'
    end
  end
  object ds_timesh_add: TUniDataSource
    DataSet = q_timesh_add
    Left = 384
    Top = 152
  end
end
